package com.william.jdbcplus.test.entity;

import com.william.jdbcplus.common.annotation.TableId;
import com.william.jdbcplus.common.annotation.Table;
import com.william.jdbcplus.common.entity.Entity;
import com.william.jdbcplus.common.enums.IdType;
import lombok.Data;

@Data
@Table("sys_user_depart")
public class SysUserDepart implements Entity {

    /**
     * 主键id
     */
    @TableId(type = IdType.GUID)
    private String id;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 部门id
     */
    private String depId;

    public SysUserDepart(String id, String userId, String depId) {
        super();
        this.id = id;
        this.userId = userId;
        this.depId = depId;
    }

    public SysUserDepart(String id, String departId) {
        this.userId = id;
        this.depId = departId;
    }
}
